Advanced Analysis of Algorithms - Homework III (Solutions)

نویسنده

  • K. Subramani
چکیده

Solution: Yes; for instance consider the language L = {5}, i.e., the language containing a single element and the corresponding decision problem: D1: Does x ∈ L?. I can reduce an arbitrary decision problem D2 ∈ P to D1 using the reduction f , which is defined as follows: Given x as input to D2, f first checks in polynomial time, whether x ∈ D1. If x is a “yes” instance of D2, f(x) = 5; otherwise f(x) = 6. It is not hard to see that an instance x is a “yes” instance of D2 if and only if f(x) is a “yes” instance of D1! In other words, we have reduced D2 to D1. 2

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Advanced Analysis of Algorithms - Homework II (Solutions)

1. Problem 15-2 on Page 364 of [CLRS01]. Solution: Assume that the optimal solution packs the n words in r lines; this solution can be decomposed into two parts, viz., the words packed on the first line and the words packed in the remaining (r − 1) lines. Regardless of the choice for the last word on line 1, the remaining words must be packed optimally in the lines 2 through (r − 1). (Why?) We ...

متن کامل

Outlines of Solutions to Selected Homework Problems

This handout contains solutions and hints to solutions for many of the STA 6505 homework exercises from Categorical Data Analysis, second edition, by Alan Agresti (John Wiley, & Sons, 2002). It should not be distributed elsewhere without permission of the author. Additional solutions for odd-numbered exercises are available at the website for the text, http://www.stat.ufl.edu/∼aa/cda/cda.html. ...

متن کامل

Optimal Trajectory Generation for Energy Consumption Minimization and Moving Obstacle Avoidance of SURENA III Robot’s Arm

In this paper, trajectory generation for the 4 DOF arm of SURENA III humanoid robot with the purpose of optimizing energy and avoiding a moving obstacle is presented. For this purpose, first, kinematic equations for a seven DOF manipulator are derived. Then, using the Lagrange method, an explicit dynamics model for the arm is developed. In the next step, in order to generate the desired traject...

متن کامل

Solving transcendental equations using Genetic Algorithms

Transcendental equations are equations containing trigonometric, algebraic, exponential, logarithmic, etc. terms. Many analytical/iterative methods are used to solve transcendental equations. Though these methods are capable of solving many transcendental equations they suffer from many common disadvantages. Usually transcendental equations have many solutions in a given range, and analytical m...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007